package action

import (
	"core/corestruct"
	"core/coreutil"
	"ht/api/htuserlogin/service"

	"ht/htinfo"
	"reflect"
)

type ForceLxAction struct {
}

func (p *ForceLxAction) Do(mm *corestruct.IdModel, ctx *corestruct.HttpContext) (int64, error) {
	return service.MainService.ForceLx(mm, ctx)
}

func ForceLxActionInit() {

	var mact = &ForceLxAction{}
	var maction = corestruct.Action{
		Method: "",

		FullUrl: URLPrev + "/ForceLx",
		Name:    PAGEName + "强制离线",
		Ename:   "",
		Memo:    "",

		PinType:    "",
		PinIslist:  false,
		PoutType:   "",
		PoutIslist: false,
		PoutIspage: false,

		AuthType: corestruct.AuthType_AUTH,

		LogNeed:     true,
		LogPin:      true,
		LogPout:     true,
		LogTemplete: "",

		PrjName: htinfo.PRJ_NAME,

		Value: reflect.ValueOf(mact),
	}
	coreutil.ActionUtil.Add(maction)

}
